//
//  MainNavController.h
//  parkour-photomap-ib
//
//  Created by Ed Mancebo on 4/5/11.
//  Copyright 2011 Personal. All rights reserved.
//

#import <UIKit/UIKit.h>

@class EditLocationViewController;
@class EditInfoViewController;
@class EditTagsViewController;
@class AccountViewController;
@class UploadInfo;
@class MapViewController;

@interface MainNavController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate, UIAlertViewDelegate> {
	UIView *mainView;
	
	EditLocationViewController *editLocationVC;
	EditInfoViewController *editInfoVC;
	EditTagsViewController *editTagsVC;
	AccountViewController *accountVC;
	UITabBarController *tabBarController;
	UINavigationController *uploadNavController;
	UIButton *uploadFromCameraButton;
	UIButton *uploadFromLibraryButton;
	MapViewController *mapViewController;
	
	UIImage *selectedImage;
}

@property (nonatomic, retain) IBOutlet UIView *mainView;

@property (nonatomic, retain) IBOutlet UIButton *uploadFromCameraButton;
@property (nonatomic, retain) IBOutlet UIButton *uploadFromLibraryButton;
@property (nonatomic, retain) IBOutlet AccountViewController *accountVC;
@property (nonatomic, retain) EditLocationViewController *editLocationVC;
@property (nonatomic, retain) EditInfoViewController *editInfoVC;
@property (nonatomic, retain) EditTagsViewController *editTagsVC;
@property (nonatomic, retain) IBOutlet UINavigationController *uploadNavController;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@property (nonatomic, retain) MapViewController *mapViewController;

@property (nonatomic, retain) UIImage *selectedImage;

- (IBAction) uploadFromCamera:(id)sender;
- (IBAction) uploadFromLibrary:(id)sender;

- (IBAction) browse:(id)sender;
- (IBAction) account:(id)sender;

- (IBAction) cancelUploadPhoto:(id)sender;
- (IBAction) submitUpload:(id)sender;

- (void) configureUploadController;
- (UploadInfo*) createUploadInfo;

@end